import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
  {
    title: '询报价id',
    dataIndex: 'rfqId',
    ifShow: false,
  },
  {
    title: '产品id',
    dataIndex: 'goodsId',
  },
  {
    title: '产品skuid',
    dataIndex: 'goodsSkuId',
  },
  {
    title: '产品编码',
    dataIndex: 'goodsCode',
  },
  {
    title: '产品sku编码',
    dataIndex: 'goodsSkuCode',
  },
  {
    title: '产品中文名称',
    dataIndex: 'goodsName',
  },
  {
    title: '产品简介',
    dataIndex: 'goodsIntro',
  },
  {
    title: '产品型号',
    dataIndex: 'goodsModel',
  },
  {
    title: '产品图片',
    dataIndex: 'goodsPic',
  },
  {
    title: '大陆报价',
    dataIndex: 'mainlandQuotation',
  },
  {
    title: '香港报价',
    dataIndex: 'hkQuotation',
  },
];

// export const searchFormSchema: FormSchema[] = [
//   {
//     label: '租户ID',
//     field: 'tenantId',
//     component: 'InputNumber',
//   },
//   {
//     label: '询报价id',
//     field: 'rfqId',
//     component: 'Input',
//   },
// ];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  { label: '', field: 'id', component: 'Input', show: false },

  {
    label: '询报价id',
    field: 'rfqId',
    component: 'Input',
    ifShow: false,
  },
  {
    label: '产品id',
    field: 'goodsId',
    component: 'Input',
    ifShow: false,
  },
  {
    label: '产品名称',
    field: 'goodsName',
    component: 'Input',
  },
  {
    label: '产品skuid',
    field: 'goodsSkuId',
    component: 'Input',
  },
  {
    label: '产品编码',
    field: 'goodsCode',
    component: 'Input',
  },
  {
    label: '产品sku编码',
    field: 'goodsSkuCode',
    component: 'Input',
  },
  {
    label: '产品简介',
    field: 'goodsIntro',
    component: 'Input',
  },
  {
    label: '产品型号',
    field: 'goodsModel',
    component: 'Input',
  },
  {
    label: '产品图片',
    field: 'goodsPic',
    component: 'Input',
  },
  {
    label: '产品采购数量',
    field: 'cgnum',
    component: 'InputNumber',
  },
  // {
  //   label: '大陆报价',
  //   field: 'mainlandQuotation',
  //   component: 'InputNumber',
  // },
  // {
  //   label: '香港报价',
  //   field: 'hkQuotation',
  //   component: 'InputNumber',
  // },
];
